package com.gitee.dupe.authority.dao;

import com.gitee.dolt.boot.mapper.SuperMapper;
import com.gitee.dupe.authority.entity.User;
import com.gitee.dupe.common.dto.UserGeneralDTO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author Administrator
 * @since 2020-06-30
 */
@Repository
public interface UserMapper extends SuperMapper<User> {

    /**
     * 根据权限id查询用户
     *
     * @param resourceIds
     * @return
     */
    List<UserGeneralDTO> findAllByResourceIdIn(List<Long> resourceIds);
}
